Skip to content

Conversation

@lmagyar
Copy link

@lmagyar lmagyar commented Jan 8, 2026

Proposed Changes

Continuation of / supersedes #1260.

Plus fixed some things:

  • handle race condition in _check_api_key()
  • handle token expiration
  • handle token invalidation
  • fix argument validation condition
  • fix attribute initialization
  • remove magic constant
  • add tests

Plus added possibility to automatically store and retrieve the received OAuth token.

Related Issues

closes #1260 #1140

clayrosenthal and others added 3 commits January 8, 2026 00:58
- handle race condition in _check_api_key()
- handle token expiration
- handle token invalidation
- fix argument validation condition
- fix attribute initialization
- remove magic constant
- add tests
@clayrosenthal
Copy link
Contributor

Nice work! This seems like all great improvements over my first step. I don't have any faith at this point that @frenck even looks at this repo, but we can dream

@frenck
Copy link
Owner

frenck commented Jan 12, 2026

Nice work! This seems like all great improvements over my first step. I don't have any faith at this point that @frenck even looks at this repo, but we can dream

I do.

@bcrochet
Copy link

Would it be possible to split some of this up into individual PRs? It will make reviewing easier and could speed up acceptance of the PR.

@lmagyar
Copy link
Author

lmagyar commented Jan 16, 2026

Not really. Only thing I can think of is the token storage abstract class with 2 abstract functions, plus a few lines of code calling it, understanding that takes as much time as reading this long sentence. All the other stuff work together to make the OAuth functionality to work at all. If I remove anything (into a separate PR), the remaining is broken, so doesn't makes sense in my opinion.

@bcrochet
Copy link

Not really. Only thing I can think of is the token storage abstract class with 2 abstract functions, plus a few lines of code calling it, understanding that takes as much time as reading this long sentence. All the other stuff work together to make the OAuth functionality to work at all. If I remove anything (into a separate PR), the remaining is broken, so doesn't makes sense in my opinion.

Fair enough. I did skim the code. But was mostly basing my statement on "Plus fixed some things" in your PR header.

Carry on.

@clayrosenthal
Copy link
Contributor

I think my old PR #1260 would be the other splitting up, but that one isn't as functional as this, and wasn't reviewed either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants